* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h3 {
    margin-left: 20px;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

section.main {
  flex: 1; 
}
/* 导航栏1 */
.navBar {
  background-color: #0a2536;
  height: 50px;
  padding-left: 20px;
}
.titleLeft {
  float: left;
}
.titleRight {
  float: right;
}
.titleRight img {
  margin-right: 20px;
  height: 50px;
}
.titleLink {
  color: white;
  text-decoration: none;
  line-height: 50px;
  font-size: larger;
  margin-right: 20px;
}
/* 导航栏2 */
.navBar2 {
  background: linear-gradient(to right, #ede910, #11e589);
  height: 50px;
  padding-left: 20px;
}
.titleLink2 {
  color: black;
  text-decoration: none;
  line-height: 50px;
  margin-right: 20px;
}
.titleLink2 span {
  color: rgb(45, 114, 188);
  vertical-align: middle;
}

.container1 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
/* 用户信息 */
.user-info {
    text-align: center;
    margin-bottom: 30px;
}
.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.user-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}
.user-stats {
    color: #666;
}
.user-stats span {
    margin-left: 10px;
}
/* 用户导航栏 */
.user-navBar {
  background: rgb(201, 75, 75);
  border-radius: 12px;
  padding: 0 20px;
  height: 70px;
  display: flex;
  justify-content:center;
  align-items: center;
}
.nav-container{
    display: flex;
    justify-content:space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 100%;
}
.nav-item{
    position: relative;
    text-decoration: none;
    color: #ffffff;
    padding: 10px 20px;
}
/* 导航栏项目悬停效果 */
.nav-item:hover {
    color: #3498db;
    background: #f8f9fa;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0px;
    height: 3px;
    background:#3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-item:hover::after {
   width: 70%;
}
section {
  width: 100%;
  /* 移除 height: 70vh; 这行代码 */
}

.container2 {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
  /* 移除 height: 100vh; 这行代码 */
}

/* 主内容 */
.vvvideo {
    float: left;
    width: 75%;
    height: 100vh;
}
.recent-videos {
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.video-item img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}
/* 侧边栏 */
.sidebar {
    float: right;
    width: 25%;
    height: 70vh;
}
.subscription {
    padding-left: 20px;
}

.sub-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    margin-left: 20px;
}
.sub-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.sub-info .sub-name {
    font-weight: bold;
    margin-bottom: 2px;
}
.sub-info .sub-stats {
    font-size: 12px;
    color: #666;
}
.view-more {
    display: block;
    margin: 10px auto;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
}

footer {
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}